package com.bases {
	import flash.display.Bitmap;
	import flash.display.BitmapData;

	/**位图数据进行存储
	 * @author pethan
	 */
	public class SCBitmap extends Bitmap {
		public function SCBitmap(bitmapData:BitmapData = null, pixelSnapping:String = "auto", smoothing:Boolean = false){
			super(bitmapData, pixelSnapping, smoothing);
		}

		/*
		 * 设置坐标
		 */
		public function setPos(x:Number, y:Number):void {
			this.x = x;
			this.y = y;
		}

		/*
		 * 设置大小
		 */
		public function setSize(w:Number, h:Number):void {
			this.width = w;
			this.height = h;
		}

		public function dispose():void {
			if (this.bitmapData != null){
				this.bitmapData.dispose();
			}
		}
	}
}